package com.demo;
import com.methods.Work;
import com.methods.TestWork;
import com.methods.DevelopmentWork;
/**
 * 测试类
 * 2017-08-13
 * @author Erik
 * @version 1.0
 * @see Work
 * @see TestWork
 * @see DevelopmentWork
 * @since JDK1.8
 */
public class Test {
    public static void main(String[] args) {
        Work work =new Work();
        TestWork testWork=new TestWork(10,5,"测试工作");
        DevelopmentWork developmentWork = new DevelopmentWork(1000,10,"研发工作");

        System.out.print("父类信息测试：");
        System.out.println(work.work());

        System.out.print("测试工作类信息测试：");
        System.out.println(testWork.work());

        System.out.print("研发工作类信息测试：");
        System.out.println(developmentWork.work());

    }
}
